<script type="text/javascript">
function getAdmin(page){
	var url = "<?php echo $this->url(array('module' =>'admin', 'controller' => 'blogs', 'action' => 'get-comment'), 'default', true)?>";
	$.get(url,{page:page, id:id},function(data){$("#blogComment").html(data);})
}
</script>

<div class="paging">
<ul>
  <?php if ($this->first_page): ?>
    <li><a onclick="getAdmin(<?=$this->first_page?>);" style="cursor:pointer;">&lsaquo;&nbsp;First</a></li>
  <?php endif ?>

  <?php if ($this->previous_page): ?>
    <li><a onclick="getAdmin(<?=$this->previous_page?>);" style="cursor:pointer;">&lt;</a></li>
  <?php endif ?>

  <?php for ($i = 1; $i <= $this->total_pages; $i++): ?>

    <?php if ($i == $this->current_page): ?>
      <li class="active"><strong><?php echo $i ?></strong></li>
    <?php else: ?>
      <li><a onclick="getAdmin(<?=$i?>);" style="cursor:pointer;"><strong><?php echo $i?></strong></a></li>
    <?php endif ?>

  <?php endfor ?>

  <?php if ($this->next_page): ?>
    <li><a onclick="getAdmin(<?=$this->next_page?>);" style="cursor:pointer;">&gt;</a></li>
  <?php endif ?>
  <?php if ($this->last_page): ?>
    <li><a onclick="getAdmin(<?=$this->last_page?>);" style="cursor:pointer;">Last&nbsp;&rsaquo;</a></li>
  <?php endif ?>
</ul>
</div>